package src.com.test;

public class Student {
    public static int a = 10;
    public static String name;
    public static int age;


    private Student() {
        System.out.println("无参构造器执行了");
    }


    public Student(String name, int age) {
        this.name = name;
        this.age = age;
    }

    /**
     * 获取
     * @return name
     */
    public static String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public static void setName(String name) {
        Student.name = name;
    }

    /**
     * 获取
     * @return age
     */
    public static int getAge() {
        return age;
    }

    /**
     * 设置
     * @param age
     */
    public static void setAge(int age) {
        Student.age = age;
    }

    public String toString() {
        return "Student{name = " + name + ", age = " + age + "}";
    }
}
